-- GENERATED SPELL FOR [Frostskull Magus] --


function spell0_31813(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20297,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31813', 7000, 1)
end

function Sorts_31813(pUnit, Event)
local choix_sorts_31813 = math.random(0, 0)
if choix_sorts_31813 == 0 then
pUnit:RegisterEvent('spell0_31813', 1, 1)
end
end

function mob31813_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31813', math.random(1500, 3000), 1)
end

function mob31813_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31813_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31813_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31813, 1, 'mob31813_Action')
RegisterUnitEvent(31813, 2, 'mob31813_Leave')
RegisterUnitEvent(31813, 3, 'mob31813_Kill')
RegisterUnitEvent(31813, 4, 'mob31813_Die')
